package com.example.homeworkmutualevaluation.Entity;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

import java.sql.Timestamp;

@Entity
@Table(name = "evaluation")
@Data
public class Evaluation {
    @Id
    private int taskid;
    private int score;
    private String comment;
    private Timestamp datetime;
    public Evaluation() {}
    public Evaluation(int taskid, int score, String comment) {
        this.taskid = taskid;
        this.score = score;
        this.comment = comment;
    }
}
